package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Visitor;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VisitorRepository extends MongoRepository<Visitor,String>{

    // 通过游客个人中心的id，获取对象
    Visitor findByOwnerId(String id);
}
